//
//  BMHCashOutAuthorizeFooterView.m
//  BMHVideoMain
//
//  Created by 陈宪栋 on 2017/7/13.
//  Copyright © 2017年 BAOMIHUA.COM. All rights reserved.
//

#import "BMHCashOutAuthorizeFooterView.h"
#import "UIImage+Gradient.h"

@implementation BMHCashOutAuthorizeFooterView

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self setupView];
    }
    return self;
}

- (void)setupView {
//    _tipLabel = [[UILabel alloc] init];
//    _tipLabel.font = [UIFont systemFontOfSize:12];
//    _tipLabel.textColor = HEXCOLOR(0x9c9c9c);
//    NSString *tip = @"请确认您的信息，如需帮助请联系我们";
//    NSMutableAttributedString *attr = [[NSMutableAttributedString alloc] initWithString:tip];
//    [attr addAttribute:NSForegroundColorAttributeName value:HEXCOLOR(0xff4a45) range:[tip rangeOfString:@"联系我们"]];
//    _tipLabel.attributedText = attr;
//    [self addSubview:_tipLabel];
//    CGSize tipSize = [_tipLabel sizeThatFits:CGSizeMake(ScreenWidth - 34, 20)];
//    [_tipLabel mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.left.equalTo(self.mas_left).offset(17);
//        make.top.equalTo(self.mas_top).offset(8);
//        make.size.mas_equalTo(tipSize);
//    }];
    
//    _contactButton = [[UIButton alloc] init];
//    [self addSubview:_contactButton];
//    [_contactButton mas_makeConstraints:^(MASConstraintMaker *make) {
//        make.top.right.bottom.equalTo(_tipLabel);
//        make.width.mas_equalTo(50);
//    }];
    
    _commitButton = [[UIButton alloc] init];
    _commitButton.layer.cornerRadius = 24;
    _commitButton.layer.masksToBounds = YES;
    _commitButton.titleLabel.font = [UIFont systemFontOfSize:15];
    [_commitButton setBackgroundColor:RGB_HEX(0xffbb01)];
    [_commitButton setTitle:@"提交审核" forState:UIControlStateNormal];
    [self addSubview:_commitButton];
    [_commitButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.centerX.equalTo(self);
        make.top.equalTo(self.mas_top).offset(20);
        make.size.mas_equalTo(CGSizeMake(ScreenWidth - 30, 48));
    }];
}

@end
